fo = open( 'threekingdoms.txt','r',encoding= 'utf-8')
for line in fo.readlines():
  print (line)
fo. close
fo = open( 'threekingdoms.txt','r' ,encoding='utf-8' ).readlines(20)
fo = open( 'threekingdoms.txt ','r' ,encoding ='utf-8')
for line in fo:
  print(line)
fo. close